<?php

  /*
   * Copyright 2007 Jeffrey Palm
   */

function extractResult($url) {
  $lines = file($url);
  foreach ($lines as $line) {
    if (preg_match('/id="result"[^>]*>([^<]+)</',$line,$out)) {
      return $out[1];
    }
  }
  return FALSE;
}
?>